import request from '@/utils/request'

// 查询详情应收列表
export function listXqyspay(query) {
  return request({
    url: '/supermarket/xqyspay/list',
    method: 'get',
    params: query
  })
}

// 查询详情应收详细
export function getXqyspay(xqyspayId) {
  return request({
    url: '/supermarket/xqyspay/' + xqyspayId,
    method: 'get'
  })
}

// 新增详情应收
export function addXqyspay(data) {
  return request({
    url: '/supermarket/xqyspay',
    method: 'post',
    data: data
  })
}

// 修改详情应收
export function updateXqyspay(data) {
  return request({
    url: '/supermarket/xqyspay',
    method: 'put',
    data: data
  })
}

// 删除详情应收
export function delXqyspay(xqyspayId) {
  return request({
    url: '/supermarket/xqyspay/' + xqyspayId,
    method: 'delete'
  })
}
